<?php
namespace App\Http\Forms;

use App\Modules\Category\Models\Category;
use Kris\LaravelFormBuilder\Form;

class RulesForm extends Form
{
    public function buildForm()
    {
        $this
            ->add('level1_rebate', 'text', [
                'label' => "返利会员奖励金额",
                'rules' => 'required|integer|min:0|max:1000000',
            ])
            ->add('level2_rebate', 'text', [
                'label' => "城市合伙人奖励金额",
                'rules' => 'required|integer|min:0|max:1000000',
            ])
            ->add('level4_rebate', 'text', [
                'label' => "非本集团或商家职员奖励金额",
                'rules' => 'required|integer|min:0|max:1000000',
            ])
            ->add('level3_rebate', 'text', [
                'label' => "本集团或商家职员奖励金额",
                'rules' => 'required|integer|min:0|max:1000000',
            ])
            ->add('level_2_3_rebate', 'text', [
                'label' => "合伙人推荐单员工奖励金额",
                'rules' => 'required|integer|min:0|max:1000000'
            ])
            ->add('submit', 'submit', [
                'attr' => ['class' => "form-control btn btn-success"],
                'label' => '保存',
            ]);
    }
}
